/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package bluetoothserver.dataStore;

import java.io.FileWriter;
import java.io.IOException;

/**
 *
 * @author Philip
 */
public class SavedWriter {
    FileWriter writer;

    public SavedWriter(String path){
        try {
            writer = new FileWriter(path);

        } catch (IOException ex) {}
    }

    public void writeLine(String line){
        try {
            writer.write(line + "\n");

        } catch (IOException ex) {}

    }

    public void closeWriter(){
        try {
            writer.close();
        } catch (IOException ex) {}
    }
}
